package org.hegang.design.first.abstractfactorypattern;

/**
 * @ClassName AbstractFactory
 * @Describe: 抽象工厂
 * @Author: gang.he
 * @Email: SmileSkylife@outlook.com
 * @Date: Created in 22:44 2019/6/28
 * @Modified By:
 * @Version V1.0
 */
public abstract class AbstractFactory {
    /**
     * 获取形状工厂
     *
     * @param shape
     * @return
     */
    public abstract Shape getShape(String shape);

    /**
     * 获取颜色工厂
     *
     * @param color
     * @return
     */
    public abstract Color getColor(String color);
}
